//
//  LWAccountModel.m
//  LWShopItem
//
//  Created by mac on 17/5/5.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import "LWAccountModel.h"

@implementation LWAccountModel

//归档
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_consignee forKey:@"LWAccountName"];
    [aCoder encodeObject:_mobile forKey:@"LWAccountPhoneNum"];
    [aCoder encodeObject:_address forKey:@"LWAccountAddress"];
}

//解档
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        
        _consignee = [aDecoder decodeObjectForKey:@"LWAccountName"];
        
        _mobile = [aDecoder decodeObjectForKey:@"LWAccountPhoneNum"];
        
        _address = [aDecoder decodeObjectForKey:@"LWAccountAddress"];
        
    }
    return self;
}

@end
